package com.example.emos.api.db.qo;


import com.example.emos.api.baes.QoBase;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;

@Data
@NoArgsConstructor
public class MeetingRoomQo extends QoBase {


    public MeetingRoomQo(Integer page, Integer length, String name, Integer start) {
        super(page, length);
        this.name = name;
        this.start = start;
    }

    @Pattern(regexp = "^[0-9a-zA-Z\\u4e00-\\u9fa5]{1,10}$", message = "会议名称内容不正确")
    @Schema(description = "会议名称")
    private String name;

    @Schema(description = "状态")
    private Integer start;
}
